Valencia’s entry into modern era was marked by the Germanía Revolt, when the city’s guild leaders rose up against the nobility and the church hierarchy, gaining control Valencia between 1519 and 1520. The spirit of the Counter-Reformation ingrained the city’s desire for religious unity, culminating in 1609 with the order of the expulsion of the Moors. The grave economic crisis of the 17th century and the Black Death outbreak of 1647 caused numerous riots throughout modern-day Spain. These circumstances combined with other issues in the early 18th century, sparking the War of Spanish Succession, a conflict which had powerful consequences for the city.